<template>
  <div>
    <div>test</div>
    <el-button @click="handeClick">点击</el-button>
    <div>props的数据{{ obj }}</div>
    <div>props的Array{{ arr }}</div>
    <div>{{ value }}</div>
  </div>
</template>
<script setup>
const props = defineProps({
  obj: Object,
  arr: Array,
  value: Number,
});
console.log(props.obj);

const handeClick = () => {
  console.log(props.value);
  props.obj.a += 10;
  props.arr.push(Math.floor(Math.random() * 100));
  //   console.log(props.arr);
};
console.log(props.data);
</script>
